//
//  GoodsCatalogModel.h
//  RainbowFM
//
//  Created by Kratos on 14/12/19.
//  Copyright (c) 2014年 RB. All rights reserved.
//

#import "BaseModel.h"

#import "StoreAPI.h"

@class GoodsAttributeItem;
@interface GoodsCatalogModel : NSObject

+(instancetype)sharedModel;

/**
 *  获取商品一级栏目
 *
 *  @param res <#res description#>
 */
-(void)fetchGoodsFirstCatalogList:(void(^)(NSArray *array,NSString *msg))res;

/**
 *  获取商品二级栏目
 *
 *  @param res <#res description#>
 */
-(void)fetchgoodsSecondCatalogListWithCatalogID:(NSString *)catalogId result:(void(^)(NSArray *array,NSString *msg))res;


-(void)fetchGoodsListWithFirstCatalogID:(NSString *)firstId secondCatalogID:(NSString *)secondId key:(NSString *)key_ sortFlag:(int)sortFlag_ currentPage:(int)start pageSize:(int)count result:(void(^)(NSArray *array,NSString *msg))res;

/**
 * 获取商品详情
 * @param productId <#productId description#>
 * @return <#return value description#>
 * @author Kratos
 */
-(void)fetchGoodsDetailWithProductId:(NSString *)productId
                              result:(void(^)(GoodsAttributeItem *item, NSString *msg))res;


@end


@interface GoodsCatalogItem : BaseModel

@property (nonatomic , strong) NSString *CATALOG_ID;//目录id
@property (nonatomic , strong) NSString *CATALOG_NAME;//目录名

@end


@interface GoodsInfoItem : BaseModel

@property (nonatomic, strong) NSString *FIRST_CATALOG_ID;
@property (nonatomic, strong) NSNumber *PRE_PRICE;
@property (nonatomic, strong) NSNumber *PRICE;
@property (nonatomic, strong) NSString *PRODUCT_ID;
@property (nonatomic, strong) NSString *PRODUCT_IMG_URL;
@property (nonatomic, strong) NSString *PRODUCT_NAME;
@property (nonatomic, strong) NSNumber *SALE_NUM;
@property (nonatomic, strong) NSString *SECOND_CATALOG_ID;

@end

@interface GoodsFirstCatalogItem : GoodsCatalogItem

@end


//二级目录
@interface GoodsSecondCatalogItem : GoodsCatalogItem

@end